{% extends "base.html" %}

{% load gravatar %}
{% load render_transport %}
{% load databasefilters %}



{% block title %}Transport Data{% endblock %}

{% block extrahead %}

{% endblock %}

{% block navbar_items %}
<li><a href="{% url 'database:index' %}">Database</a></li>
<li><a href="{% url 'database:transport' %}">Transport</a></li>
{% endblock %}

{% block sidebar_items %}
{% endblock %}

{% block page_title %}Transport Data{% endblock %}

{% block page_body %}
<h2>Structure</h2>
<p>
{{ structure|safe }}
</p>


<h2>Transport Data</h2>

{% for entry, transport, source, href in transportDataList %}
{% if href != '' %}<a href="{{ href }}">{% endif %}
<h3>Result #{{ forloop.counter }} &ndash; {{ source }}</h3>
{% if href != '' %}</a>{% endif %}

{% if entry.label != '' %}
<p>Species label: {{ entry.label }}</p>
{% endif %}

<table class="transportEntryData">
{{ transport|render_transport_math:user }}
</table>
<P>
Comments: {{ transport.comment }} 
<P>
{% endfor %}


{% endblock %}
